package com.yxhl.zoume.data.http.rest.repositoryimpl;

import com.yxhl.zoume.data.http.repository.splash.SplashBannerRepository;
import com.yxhl.zoume.data.http.rest.param.splash.SplashParam;
import com.yxhl.zoume.data.http.rest.repositoryimpl.base.BaseDataRepository;
import com.yxhl.zoume.data.http.rest.response.splash.BannerResponse;
import com.yxhl.zoume.data.http.rest.response.splash.SplashResponse;

import javax.inject.Inject;

import retrofit2.http.Body;
import retrofit2.http.Path;
import rx.Observable;

/**
 * 项目名称：Ferrari
 * Created by menggod on 16/10/31 .
 */

public class SplashDataBannerRepository extends BaseDataRepository implements SplashBannerRepository {

    @Inject
    public SplashDataBannerRepository() {
    }

    @Override
    public Observable<SplashResponse> obtainSplash(@Body SplashParam param) {
        return mZouMeService.obtainSplash(param);
    }

    @Override
    public Observable<SplashResponse> obtainSplash(@Path("clientSystem") String clientSystem,
                                                   @Path("screen") String screen) {
        return mZouMeService.obtainSplash(clientSystem, screen);
    }

    @Override
    public Observable<BannerResponse> obtainBanner() {
        return mZouMeService.obtainBanner();
    }

}
